import React, {PropTypes} from 'react'
import './index.css'
//https://github.com/r-park/todo-react-redux/blob/master/src/views/pages/tasks/index.js

export default class WeiboList extends React {
  static proTypes = {
    wbMap: PropTypes.isArray({})
  }

  componentWillMount() {
  }

  componentDidMount() {
  }

  componentDidUpdate(prevProps, prevState) {
  }

  render() {
    return (
      this.wbMap.map(item => {
        return (<div className="wb-item">
          <div className="wb-item-hd">
            <div className="wb-item-avatar">
              <img src={item.avatar}/>
            </div>
            <div className="wb-item-user-info">
              <div className="wb-item-user-name">{item.userName}</div>
              <div className="wb-item-user-time">
                <span>{item.createTime}</span>
                <span>{item.createFrom}</span>
              </div>
            </div>
            <a className="wb-item-more" href="javascript:;"></a>
          </div>
          <div className="wb-item-details">
            <p className="wb-default-txt">{item.details}</p>
          </div>
          <div className="wb-item-footer">
            <a className="wb-btn-like" href="javascript:;">
              <i></i>
              <span>{item.praise}</span>
            </a>
          </div>
        </div>)
      })
    )
  }
}

